Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@master/css.compiler
Advanced tools
npm install @master/css.compiler
const compiler = new MasterCSSCompiler()
{
cwd: process.cwd(),
config: 'master.css.{js,mjs,cjs}',
// forcibly specify sources for scanning, not excluded by `options.exclude`
sources: [],
// specify sources for scanning
include: ['**/*.{html,js,jsx,ts,tsx,svelte,astro,vue,md,mdx,pug,php}'],
// specify sources to exclude
exclude: [
'**/node_modules/**',
'**/*.d.ts',
'**/*.test.*',
'node_modules',
'master.css.{js,ts,mjs,cjs}',
'dist',
'out',
'README.md'
],
// whitelist of class names for unpredictable dynamics
fixedClasses: [],
// blacklist of class names to exclude accidentally captured
ignoredClasses: [] // or RegExp[]
}
// Initialize the compiler and MasterCSS
init(): this
// Scan sources, extract class names, and generate CSS rules
compile()
// Extract potential class names from the given file content
extract(name: string, content: string): string[]
// `extract(name, content)`, insert extractions, and generate CSS rules
insert(name: string, content: string): boolean
// Read file source paths by `options.include` and `options.exclude`
get sources(): string[]
// Check source file path by `options.include` and `options.exclude`
checkSourcePath(name: string): boolean
// Read user config file by `options.config`
readConfig(): Config
// Get custom config path
get configPath(): string
// Get custom config path
get resolvedConfigPath(): string
export default class MasterCSSCompiler {
css: MasterCSS
extractions = new Set<string>()
...
}
FAQs
The ahead-of-time compiler of Master CSS
The npm package @master/css.compiler receives a total of 9 weekly downloads. As such, @master/css.compiler popularity was classified as not popular.
We found that @master/css.compiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.